<?php

if (!defined('IN_PROVERB')) {
    exit('Access Denied');
}
?>
<?php include ROOT_PATH . '/views/admin/header.php'; ?>
<body>


<form method="post" action="index.php?con=<?php echo $GLOBALS['setting']['adminpath']; ?>&act=dangyuan" name="searchform">
    <table width="100%" cellspacing="0" class="search-form">
        <tbody>
        <tr>
            <td>
                <div class="explain-col">
                    关键字：<INPUT TYPE="text" NAME="keyword" class="input-text"
                               value="<?php echo $_REQUEST['keyword']; ?>">

                    <input type="submit" class="button" value="确定">
                </div>
            </td>

        </tr>
        </tbody>
    </table>
</form>
<!--选择自己报到的-->
<!--街道-->
<!--社区，-->
<!--选择自己所在单位，-->
<!--填写自己职务-->
<!--以及其他资料-->
<!--及特长-->
<div class="table-list">
    <TABLE cellpadding="1" cellspacing="1" width="100%">
        <thead>
        <TR>
            <TH width="4%">状态</TH>
            <TH width="5%">姓名</TH>
            <TH width="6%">积分</TH>
            <TH width="6%">岗位</TH>
            <TH width="7%">街道</TH>
            <TH width="7%">社区</TH>
            <TH width="10%">所在单位</TH>
            <TH width="10%">职务</TH>
            <TH width="15%">服务口号</TH>
            <TH width="10%">特长</TH>
            <TH width="10%">时间</TH>
            <TH width="10%">操作</TH>
        </TR>
        </thead>
        <tbody>
        <?php foreach ($taglist['data'] as $key => $val) { ?>
            <TR class="tr<?php echo $key % 2; ?>" id="user<?php echo $val['user_id']; ?>" height="50" style="height: 50px; position: relative; overflow: hidden">
                <TD align="center">
                    <?php if($val['isused'] == 0){echo "未审核";}elseif($val['isused'] == 1){echo "<p class='green'>通过</p>";}else{echo "<p class='red'>拒绝</p>";} ?>
                </TD>

                <TD align="center">
                    <?php echo $val['user_name']."(".$val['sex'].")<br>电话：".$val['mobile']."<br>微信：".$val['weixin']; ?>
                </TD>

                <TD align="center">
                    <?php echo $val['jifen']; ?>
                </TD>

                <TD align="center">
                    <?php echo $val['gangwei']; ?>
                </TD>

                <TD align="center">
                    <?php echo $val['jiedao']; ?>
                </TD>

                <TD align="center">
                    <?php echo $val['shequ']; ?>
                </TD>

                <TD align="center">
                    <?php echo $val['danwei']; ?>
                </TD>

                <TD align="center">
                    <?php echo $val['zhiwu']; ?>
                </TD>

                <TD align="center">
                    <?php echo $val['ziliao']; ?>
                </TD>

                <TD align="center">
                    <?php echo $val['techang']; ?>
                </TD>

                <TD align="center"><?php echo date('Y-m-d', $val['created_time']); ?></TD>



                <TD align="center">
                    <A HREF="index.php?con=<?php echo $GLOBALS['setting']['adminpath']; ?>&act=dangyuanmodify&updateid=<?php echo $val['user_id']; ?>"
                       >修改岗位,积分</A><br><br>
                    <?php if($val['isused'] == 0){ ?>
                    <A HREF="index.php?con=<?php echo $GLOBALS['setting']['adminpath']; ?>&act=dangyuan&type=passUser&id=<?php echo $val['user_id']; ?>"
                       onclick="return confirm('通过审核？');">通过</A>|
                    <A HREF="index.php?con=<?php echo $GLOBALS['setting']['adminpath']; ?>&act=dangyuan&type=refuseUser&id=<?php echo $val['user_id']; ?>"
                       onclick="return confirm('拒绝审核通过？');">拒绝</A>|
                    <?php }elseif($val['isused'] == 1){ ?>
                        <A HREF="index.php?con=<?php echo $GLOBALS['setting']['adminpath']; ?>&act=dangyuan&type=refuseUser&id=<?php echo $val['user_id']; ?>"
                           onclick="return confirm('拒绝审核通过？');">拒绝</A>|
                    <?php }else{ ?>
                        <A HREF="index.php?con=<?php echo $GLOBALS['setting']['adminpath']; ?>&act=dangyuan&type=passUser&id=<?php echo $val['user_id']; ?>"
                           onclick="return confirm('通过审核？');">通过</A>|
                    <?php } ?>
                    <A HREF="index.php?con=<?php echo $GLOBALS['setting']['adminpath']; ?>&act=dangyuan&type=del&id=<?php echo $val['user_id']; ?>"
                       onclick="return confirm('确认删除？');" class="red">删除</A>
                </TD>
            </TR>
        <?php } ?>
        </tbody>
    </TABLE>
</div>
<div class="pages"><?php echo $taglist['pageinfo']; ?></div>

</body>
</html>